/**
 * @Project HGEMS
 * @Author Tran Manh Hung
 * @Email: hungtmit@gmail.com | tmh@xwebgate.com
 * @Copyright © 2010 TMH. All rights reserved
 * @Createdate Nov 4, 2010
 * @Createtime 9:20:11 AM
 */

package events
{
	import flash.events.Event;

	public class HGDataGridEvent extends Event
	{
		public static const ROW_CHANGE:String = "rowChange";

		public static const ROW_EDIT:String = "rowEdit";

		public static const ROW_DELETE:String = "rowDelete";

		public static const ROW_DETAIL:String = "rowDetail";

		public static const ROW_DATA_CHANGE:String = "rowDataChange";

		public static const ROW_ADD:String = "rowAdd";

		private var _data:Object;

		public function HGDataGridEvent(type:String, data:Object = null, bubbles:Boolean = false, cancelable:Boolean = false)
		{
			super(type, bubbles, cancelable);

			this.data = data;
		}

		override public function clone():Event
		{
			return new HGDataGridEvent(type, data, bubbles, cancelable);
		}

		public function get data():Object
		{
			return _data;
		}

		public function set data(value:Object):void
		{
			_data = value;
		}

	}
}